import pyautogui
import time

time.sleep(1)

# 模拟键盘输入，每次键盘敲击都间隔0.5秒
# pyautogui.write('Hello', interval=0.5)

# # 敲击回车键
# pyautogui.press('enter')
# pyautogui.press('shift')
# # 敲击上下左右
# pyautogui.press('up')
# pyautogui.press('down') 
# pyautogui.press('left')
# pyautogui.press('right')

# pyautogui.keyDown('ctrl')
# pyautogui.keyDown('w')
# pyautogui.keyUp('w')
# pyautogui.keyUp('ctrl')

pyautogui.hotkey('command', 'shift', 'm')
# ctrl + shift 切换快捷键
pyautogui.hotkey('ctrl', 'shift')